package com.work.pojo;/**
 * @author： li
 * @date： 2021-05-28 09:03
 * @version 1.0
 */

import java.util.Objects;

/**
 * @author： Administrator
 * @date： 2021-05-28 09:03
 * @version 1.0
 */
public class user {
    private int id;
    private String email;
    private String password;
    private int state;
    private String cookies;

    @Override
    public String toString() {
        return "user{" +
                "id=" + id +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", state=" + state +
                ", cookies='" + cookies + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof user)) return false;
        user user = (user) o;
        return getId() == user.getId() &&
                getState() == user.getState() &&
                getEmail().equals(user.getEmail()) &&
                getPassword().equals(user.getPassword()) &&
                getCookies().equals(user.getCookies());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getEmail(), getPassword(), getState(), getCookies());
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCookies() {
        return cookies;
    }

    public void setCookies(String cookies) {
        this.cookies = cookies;
    }

    public user(int id, String email, String password, int state, String cookies) {
        this.id = id;
        this.email = email;
        this.password = password;
        this.state = state;
        this.cookies = cookies;
    }

    public user() {
    }
}
